package cn.icatw.gulimall.order.dao;

import cn.icatw.gulimall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 *
 * @author icatw
 * @email 762188827@qq.com
 * @date 2022-02-21 20:53:00
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    /**
     * 更新订单状态
     *
     * @param orderSn 订单sn
     * @param code    代码
     * @param alipay  支付宝
     */
    void updateOrderStatus(@Param("orderSn") String orderSn, @Param("code") Integer code, @Param("alipay") Integer alipay);
}
